import Cookies from "js-cookie";
const tokenKey = "tokenAdmin"
const userNameKey = "username"

export const getToken = () => {
  return Cookies.get(tokenKey)
}

export const setToken = (value) => {
  Cookies.set(tokenKey, value)
}

export const removeToken = () => {
  return Cookies.remove(tokenKey)
}

export const setUsername = (value) => {
  Cookies.set(userNameKey, value)
}
export const getUsername = () => {
  Cookies.get(userNameKey)
}
export const removeUsername = () => {
  Cookies.remove(userNameKey)
}